using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.Security.Permissions;

namespace PopLava.Tools
{
    public partial class GetInputDialog : Form
    {
        private string g_sType = String.Empty;

        public GetInputDialog()
        {
            InitializeComponent();
        }
        // Disables the forms close button.
        protected override CreateParams CreateParams
        {
            get
            {
                CreateParams oCP = base.CreateParams;
                oCP.ClassStyle = oCP.ClassStyle | 0x200;
                return oCP;
            }
        }
        public string SType
        {
            get
            {
                return g_sType;
            }
            set
            {
                g_sType = value;
            }
        }
        /// <summary>
        /// Allow user to hit enter in input
        /// </summary>
        private void TextBox_Input_KeyPress(object sender, KeyPressEventArgs e)
        {
            //
            // If Enter was pressed
            //
            if (e.KeyChar == (char)13)
            {
                this.OK_Button.PerformClick();
            }
        }
    }
}